package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仅统计当天有数据的患者，补录后自动更新对象 ahhc_daily_summary
 * 
 * @author ruoyi
 * @date 2025-03-15
 */
public class AhhcDailySummary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联患者表ID */
    private String patientId;

    /** 全日入量（叠加含水量） */
    @Excel(name = "全日入量", readConverterExp = "叠=加含水量")
    private BigDecimal totalIntake;

    /** 全日出量（叠加含水量+1000ml蒸发量） */
    @Excel(name = "全日出量", readConverterExp = "叠=加含水量+1000ml蒸发量")
    private BigDecimal totalOutput;

    /** 统计日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date summaryDate;

    /** 写入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "写入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setPatientId(String patientId) 
    {
        this.patientId = patientId;
    }

    public String getPatientId() 
    {
        return patientId;
    }

    public void setTotalIntake(BigDecimal totalIntake) 
    {
        this.totalIntake = totalIntake;
    }

    public BigDecimal getTotalIntake() 
    {
        return totalIntake;
    }

    public void setTotalOutput(BigDecimal totalOutput) 
    {
        this.totalOutput = totalOutput;
    }

    public BigDecimal getTotalOutput() 
    {
        return totalOutput;
    }

    public void setSummaryDate(Date summaryDate) 
    {
        this.summaryDate = summaryDate;
    }

    public Date getSummaryDate() 
    {
        return summaryDate;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("totalIntake", getTotalIntake())
            .append("totalOutput", getTotalOutput())
            .append("summaryDate", getSummaryDate())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
